#include "../maindef.h"
#include "CSkillEffect.h"

#if 0
int CSkillEffect::InitByEffCfg(CSkillEffCfgData& stCfgData)
{
    if (!stCfgData.HasCfg())
    {
        return ERROR_SKILL_AFF_EMPTY_CFG;
    }

    _ucStatType = stCfgData._ucStatType;
    _ucSubType = stCfgData._ucSubType;
    _uiID = stCfgData._uiID;
    _iTriggerRate = stCfgData._iTriggerRate;
    _iType = stCfgData._iType;
    _iData = stCfgData._iData;
    _iLast = stCfgData._iLast;

    return 0;
}
#endif

void CSkillEffect::DumpSkillEffectInfo()
{
    CT_BATTLE(("%-18s = %d", "主类型", _ucStatType));
    CT_BATTLE(("%-18s = %d", "子类型", _ucSubType));
    CT_BATTLE(("%-18s = %u", "ID", _uiID));
    CT_BATTLE(("%-18s = %u", "触发概率", _iTriggerRate));
    CT_BATTLE(("%-18s = %d", "类型(1数值 2比率)", _iType));
    CT_BATTLE(("%-18s = %d", "数据值", _iData));
    CT_BATTLE(("%-18s = %d", "持续回合数", _iLast));
}

